package kr.saeildadim.androidexam_saeildamil.chapter11;

import kr.saeildadim.androidexam_saeildamil.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.Toast;

public class Ch11_ImageBtnEx extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch11_imagebtn);
		
		ImageButton btn = (ImageButton) findViewById(R.id.ch11_imagebnt_imagebnt);
		
		btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(Ch11_ImageBtnEx.this, "이미지버튼 클릭", Toast.LENGTH_LONG).show();
				
			}
		});
	}
}
